import java.lang.reflect.Field;


public class test3 {
    public static void main(String[] args) {
        int a=2147483646;
        int b=a*10+1;
        System.out.println(b);
    }
    public static void main2(String[] args) throws InterruptedException {
        Runnable target = () -> {
            for (int i = 0; i < 10; i++) {
                try {
                    System.out.println(Thread.currentThread().getName()
                            + ": 我还在工作！");
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            System.out.println(Thread.currentThread().getName() + ": 我结束了！");
        };
        Thread thread1 = new Thread(target, "李四");
        Thread thread2 = new Thread(target, "王五");
        System.out.println("先让李四开始工作");
        thread1.start();
        //thread1.join();
        System.out.println("李四工作结束了，让王五开始工作");
        thread2.start();
        //thread2.join();
        System.out.println("王五工作结束了");
    }
    public static void main1(String[] args) throws InterruptedException {
        Thread[] threads=new Thread[20];
        for(int i=0;i<20;i++){
            final int n=i;
            threads[i]=new Thread(()->{
                System.out.println(n);
            });
        }
        for(Thread t:threads){
            t.start();
            t.join();

        }
        System.out.println("ok");
    }
}
